//
//  LCZLeftColumnCell.m
//  PersonalNews
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 changshuhua. All rights reserved.
//

#import "LCZLeftColumnCell.h"

@implementation LCZLeftColumnCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel = [[LCZBaseLabel alloc]init];
        [self.contentView addSubview:self.titleLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
}

#pragma mark 设置cell的选中状态
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    if (selected) {
        self.titleLabel.textColor = [UIColor redColor];
        self.titleLabel.font = [UIFont systemFontOfSize:18];
    } else {
        self.titleLabel.textColor = [UIColor colorWithRed:0.45 green:0.46 blue:0.46 alpha:1];
        self.titleLabel.font = [UIFont systemFontOfSize:16];
    }
 }


@end
